<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>jquery.zclip</title>
		<script src="http://js.selfimg.com.cn/jquery/jquery-1.7.1.min.js"></script>
        <script src="jquery.zclip.min.js"></script>
    </head>
 	<body> 		
		<button id="copy-btn">复制链接</button>
		<input id="link" type="text" value="http://www.vogue.com.cn/">

 		<script>
			$(document).ready(function(){
			    $('#copy-btn').zclip({
			        path:'ZeroClipboard.swf',
			        copy:$('#link').val(),
			        afterCopy:function(){
			        	alert("复制成功");
			        }
			    });
			});
 		</script>
    </body>
</html>
